import request from "@/api/request"

//关键词和搜索历史接口
function Sindexaction(data){
    return request({
        url:"search/indexaction",
        method:"get",
        data
    })
}
//搜索提示接口
function helperaction(data){
    return request({
        url:"search/helperaction",
        method:"get",
        data
    })
}
//搜索的关键词添加到数据库
function addhistoryaction(data){
    return request({
        url:"search/addhistoryaction",
        method:"post",
        data
        
    })
}
//清空搜索历史
function clearhistoryAction(data){
    return request({
        url:"search/clearhistoryAction",
        method:"post",
        data
    })
}

export {
    Sindexaction,addhistoryaction,helperaction,clearhistoryAction
}